package cn.bqjr.eily.shiro.spring.boot.entity.Attr;

import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = "shiro.loginRetry")
public class LoginRetryAttr {
    private Boolean enabledLoginRetryLimit = true;      // 是否开启登录错误重试次数限制
    private Integer loginRetryLimitCount = 5;           // 登录错误重试限制次数
    private Long loginRetryLimitTime = 1800000L;        // 登录错误重试限制时间范围，单位毫秒
    private Long loginRetryLockTime = 86400000L;        // 登录错误重试锁定时长，单位毫秒

    public Boolean getEnabledLoginRetryLimit() {
        return enabledLoginRetryLimit;
    }

    public void setEnabledLoginRetryLimit(Boolean enabledLoginRetryLimit) {
        this.enabledLoginRetryLimit = enabledLoginRetryLimit;
    }

    public Integer getLoginRetryLimitCount() {
        return loginRetryLimitCount;
    }

    public void setLoginRetryLimitCount(Integer loginRetryLimitCount) {
        this.loginRetryLimitCount = loginRetryLimitCount;
    }

    public Long getLoginRetryLimitTime() {
        return loginRetryLimitTime;
    }

    public void setLoginRetryLimitTime(Long loginRetryLimitTime) {
        this.loginRetryLimitTime = loginRetryLimitTime;
    }

    public Long getLoginRetryLockTime() {
        return loginRetryLockTime;
    }

    public void setLoginRetryLockTime(Long loginRetryLockTime) {
        this.loginRetryLockTime = loginRetryLockTime;
    }
}
